delta: return valid enum member
authorJonathan Lebon <jlebon@redhat.com>
Thu, 27 Oct 2016 21:12:05 +0000 (17:12 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 27 Oct 2016 22:16:32 +0000 (22:16 +0000)
If we can't figure out what endianness a delta is, we should just throw
ENDIAN_INVALID.

Resolves: #550

Closes: #553
Approved by: cgwalters

src/libostree/ostree-repo-static-delta-core.c

index 77e7939a6471bd7f633cea2c70664684b255436a..0b0d70672d5652093b3e1211a7834dbc7c740275 100644 (file)
@@ -764,7 +764,7 @@ _ostree_delta_get_endianness (GVariant *superblock,
           }
       }
 
-    return G_BYTE_ORDER;
+    return OSTREE_DELTA_ENDIAN_INVALID;
   }
 }